package com.awifi.com.thread.pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/6/30 15:47
 */
public class TestNewCachedThreadPool {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newCachedThreadPool();
        ThreadPool threadPool = new ThreadPool();
        for (int i =0;i<10;i++){
            executorService.submit(threadPool);
        }
        executorService.shutdown();
    }
}
